const centerutil = {
  center: function (element) {
    let width = parseInt(window.getComputedStyle(element).width)
    let margin = -(width / 2)
    return margin.toString() + 'px'
  }
}

export default centerutil;
